From 116c6086a40cb883bbcb1811ff3811d44371079a Mon Sep 17 00:00:00 2001
From: Daniel Kolesa <daniel@octaforge.org>
Date: Fri, 29 Jul 2022 14:16:30 +0200
Subject: [PATCH 8/8] force ugetopt

---
 lsinitramfs      | 2 +-
 mkinitramfs      | 2 +-
 unmkinitramfs    | 2 +-
 update-initramfs | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lsinitramfs b/lsinitramfs
index 5b3315f..7cd1e18 100755
--- a/lsinitramfs
+++ b/lsinitramfs
@@ -24,7 +24,7 @@ usage_error()
 
 umi_opts="--list"
 
-OPTIONS=$(getopt -o hl --long help,long -n "$0" -- "$@") || usage_error
+OPTIONS=$(ugetopt -o hl --long help,long -n "$0" -- "$@") || usage_error
 
 eval set -- "$OPTIONS"
 
diff --git a/mkinitramfs b/mkinitramfs
index d9b8e39..0e53634 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -33,7 +33,7 @@ usage_error()
 	exit 2
 }
 
-OPTIONS=$(getopt -o c:d:hl:ko:r:v --long help -n "$0" -- "$@") || usage_error
+OPTIONS=$(ugetopt -o c:d:hl:ko:r:v --long help -n "$0" -- "$@") || usage_error
 
 eval set -- "$OPTIONS"
 
diff --git a/unmkinitramfs b/unmkinitramfs
index 889e4b8..b50c018 100755
--- a/unmkinitramfs
+++ b/unmkinitramfs
@@ -134,7 +134,7 @@ splitinitramfs()
 	fi
 }
 
-OPTIONS=$(getopt -o hv --long help,list,verbose -n "$0" -- "$@") || usage_error
+OPTIONS=$(ugetopt -o hv --long help,list,verbose -n "$0" -- "$@") || usage_error
 
 cpio_opts="--preserve-modification-time --quiet"
 expected_args=2
diff --git a/update-initramfs b/update-initramfs
index 4f8922c..f83ad06 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -291,7 +291,7 @@ verbose=0
 
 ##
 
-OPTIONS=$(getopt -o "k:cudvtb:h?" --long help -n "$0" -- "$@") || usage_error
+OPTIONS=$(ugetopt -o "k:cudvtb:h?" --long help -n "$0" -- "$@") || usage_error
 
 eval set -- "$OPTIONS"
 
-- 
2.37.1

